package com.cn.yz.common.exception;

public enum ErrMessage {
	COULD_NOT_READ_JSON("400","参数解析失败"),
	REQUEST_METHOD_NOT_SUPPORTED("405","不支持当前请求方法"),
	CONTENT_TYPE_NOT_SUPPORTED("415","不支持当前媒体类型"),
	ACCOUNT_MUST("1001","账号名必须填写!"),
	ACCOUNT_INVALID ("1002","账号不存在!"),
	ACCOUNT_REPEAT("1003","账号已存在"),
	ACCOUNT_CANNOT_BE_MODIFIED("1004","账号不能被修改"),
	PASSWORD_MUST("1010","密码必须填写!"),
	PASSWORD_CANNOT_ENCRYPT("1011","设置密码失败"),
	ID_MUST("1020","id必须填写"),
	RECORD_NON_EXISTENT("1030","记录不存在"),
	RECORD_CANNOT_DELETE("1031","记录不能被删除"),
	LOGIN_FAIL("1100","账号或者密码输入错误!");
	
	private String code;
	
	private String message;
	
	private ErrMessage(String code,String message){
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
